package com.xmall.pethouse_api.pojo.entity;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Order implements Serializable {
    //订单ID
    private Long id;

    //订单编号
    private String orderNo;

    //用户ID
    private Long userId;

    //服务类型ID
    private Long serviceId;

    //宠物ID
    private Long petId;

    //服务人员ID
    private Long staffId;

    //订单状态（0:待支付 1:已预约 2:服务中 3:已完成 4:已取消）
    private Integer status;

    //总金额
    private Double totalAmount;

    //服务时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime serviceTime;

    //服务地址
    private String address;

    //备注
    private String remark;

    //创建时间
    private LocalDateTime createdAt;

    //更新时间
    private LocalDateTime updatedAt;
}    